<?php

class Admin_Bootstrap extends Zend_Application_Module_Bootstrap {

    protected function _initAutoloader() {
        return new Zend_Application_Module_Autoloader(array(
                    'namespace' => APPLICATION_NAMESPACE,
                    'basePath' => dirname(__FILE__),
                ));
    }

    protected function _initPlugins() {
        $this->bootstrap('autoloader');
        $this->bootstrap('frontcontroller');
        $front = $this->getResource('frontcontroller');

        $plugin = new Jhg_Plugin_Admin();
        $front->registerPlugin($plugin);
    }

}